package com.weilele.leisure.time.bean;

import com.google.gson.annotations.SerializedName;

import java.util.List;

public class PageByIdBean {

    /**
     * id : 270146
     * type : ad
     * styles : {"swiper":false,"ratio":0,"w":0,"h":150,"close":false,"autoFit":false,"btnGroup":[{"enabled":true,"type":"HISTORY","defaultIcon":true,"sortOrder":0,"defaultTitle":"播放历史"}],"cells":0,"rows":0,"more":false,"badge":[{"offset":"rb","bind_prop":"remarks","format_text":"$$"}],"pic_prop":"pic"}
     * datas : {"searchExtendOneLevel":false,"level":5,"by":"time","order":"DESC","start":0,"num":6,"paging":true,"valuesItems":[{"text":"动作片","oldname":"动作片","value":"6","sortorder":0}],"conditions":[{"enabled":true,"filterType":"other","defaultText":"全部","sortOrder":3,"valuesItems":[{"text":"大陆","value":"120"}],"otherItems":[{"enabled":true,"type":"hits","hot":false,"text":"最多播放"}]}],"sorts":[{"by":"time","order":"DESC"}],"one_level_id":"1","one_level_text":"电影"}
     * items : [{"openin":false,"photoType":"VIDEO","cmsImg":{"id":214188,"title":"赘婿","picProp":"pic_slide","picUrl":"https://ae01.alicdn.com/kf/Uc9cac45bd52248a7bb20ce6de2470960U.jpg","useTitle":true}}]
     * openin : false
     * action : H5_OUT
     * photoType : MANUAL
     * has_child : false
     * sort_order : 7
     * title : 推荐
     */

    @SerializedName("id")
    private int id;
    @SerializedName("type")
    private String type;
    @SerializedName("styles")
    private StylesDTO styles;
    @SerializedName("datas")
    private DatasDTO datas;
    @SerializedName("items")
    private List<ItemsDTO> items;
    @SerializedName("videos")
    private List<VideoListBean.RowsDTO> videos;
    @SerializedName("openin")
    private boolean openin;
    @SerializedName("action")
    private String action;
    @SerializedName("photoType")
    private String photoType;
    @SerializedName("has_child")
    private boolean hasChild;
    @SerializedName("sort_order")
    private int sortOrder;
    @SerializedName("title")
    private String title;
    @SerializedName("components")
    private List<PageByIdBean> components;
    @SerializedName("child_components")
    private List<PageByIdBean> childComponents;

    public List<VideoListBean.RowsDTO> getVideos() {
        return videos;
    }

    public void setVideos(List<VideoListBean.RowsDTO> videos) {
        this.videos = videos;
    }

    public List<PageByIdBean> getComponents() {
        return components;
    }

    public void setComponents(List<PageByIdBean> components) {
        this.components = components;
    }

    public List<PageByIdBean> getChildComponents() {
        return childComponents;
    }

    public void setChildComponents(List<PageByIdBean> childComponents) {
        this.childComponents = childComponents;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public StylesDTO getStyles() {
        return styles;
    }

    public void setStyles(StylesDTO styles) {
        this.styles = styles;
    }

    public DatasDTO getDatas() {
        return datas;
    }

    public void setDatas(DatasDTO datas) {
        this.datas = datas;
    }

    public List<ItemsDTO> getItems() {
        return items;
    }

    public void setItems(List<ItemsDTO> items) {
        this.items = items;
    }

    public boolean isOpenin() {
        return openin;
    }

    public void setOpenin(boolean openin) {
        this.openin = openin;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getPhotoType() {
        return photoType;
    }

    public void setPhotoType(String photoType) {
        this.photoType = photoType;
    }

    public boolean isHasChild() {
        return hasChild;
    }

    public void setHasChild(boolean hasChild) {
        this.hasChild = hasChild;
    }

    public int getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(int sortOrder) {
        this.sortOrder = sortOrder;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public static class StylesDTO {
        /**
         * swiper : false
         * ratio : 0
         * w : 0
         * h : 150
         * close : false
         * autoFit : false
         * btnGroup : [{"enabled":true,"type":"HISTORY","defaultIcon":true,"sortOrder":0,"defaultTitle":"播放历史"}]
         * cells : 0
         * rows : 0
         * more : false
         * badge : [{"offset":"rb","bind_prop":"remarks","format_text":"$$"}]
         * pic_prop : pic
         */

        @SerializedName("swiper")
        private boolean swiper;
        @SerializedName("ratio")
        private double ratio;
        @SerializedName("w")
        private int w;
        @SerializedName("h")
        private int h;
        @SerializedName("close")
        private boolean close;
        @SerializedName("autoFit")
        private boolean autoFit;
        @SerializedName("btnGroup")
        private List<BtnGroupDTO> btnGroup;
        @SerializedName("cells")
        private int cells;
        @SerializedName("rows")
        private int rows;
        @SerializedName("more")
        private boolean more;
        @SerializedName("badge")
        private List<BadgeDTO> badge;
        @SerializedName("pic_prop")
        private String picProp;

        public boolean isSwiper() {
            return swiper;
        }

        public void setSwiper(boolean swiper) {
            this.swiper = swiper;
        }

        public double getRatio() {
            return ratio;
        }

        public void setRatio(double ratio) {
            this.ratio = ratio;
        }

        public int getW() {
            return w;
        }

        public void setW(int w) {
            this.w = w;
        }

        public int getH() {
            return h;
        }

        public void setH(int h) {
            this.h = h;
        }

        public boolean isClose() {
            return close;
        }

        public void setClose(boolean close) {
            this.close = close;
        }

        public boolean isAutoFit() {
            return autoFit;
        }

        public void setAutoFit(boolean autoFit) {
            this.autoFit = autoFit;
        }

        public List<BtnGroupDTO> getBtnGroup() {
            return btnGroup;
        }

        public void setBtnGroup(List<BtnGroupDTO> btnGroup) {
            this.btnGroup = btnGroup;
        }

        public int getCells() {
            return cells;
        }

        public void setCells(int cells) {
            this.cells = cells;
        }

        public int getRows() {
            return rows;
        }

        public void setRows(int rows) {
            this.rows = rows;
        }

        public boolean isMore() {
            return more;
        }

        public void setMore(boolean more) {
            this.more = more;
        }

        public List<BadgeDTO> getBadge() {
            return badge;
        }

        public void setBadge(List<BadgeDTO> badge) {
            this.badge = badge;
        }

        public String getPicProp() {
            return picProp;
        }

        public void setPicProp(String picProp) {
            this.picProp = picProp;
        }

        public static class BtnGroupDTO {
            /**
             * enabled : true
             * type : HISTORY
             * defaultIcon : true
             * sortOrder : 0
             * defaultTitle : 播放历史
             */

            @SerializedName("enabled")
            private boolean enabled;
            @SerializedName("type")
            private String type;
            @SerializedName("defaultIcon")
            private boolean defaultIcon;
            @SerializedName("sortOrder")
            private int sortOrder;
            @SerializedName("defaultTitle")
            private String defaultTitle;

            public boolean isEnabled() {
                return enabled;
            }

            public void setEnabled(boolean enabled) {
                this.enabled = enabled;
            }

            public String getType() {
                return type;
            }

            public void setType(String type) {
                this.type = type;
            }

            public boolean isDefaultIcon() {
                return defaultIcon;
            }

            public void setDefaultIcon(boolean defaultIcon) {
                this.defaultIcon = defaultIcon;
            }

            public int getSortOrder() {
                return sortOrder;
            }

            public void setSortOrder(int sortOrder) {
                this.sortOrder = sortOrder;
            }

            public String getDefaultTitle() {
                return defaultTitle;
            }

            public void setDefaultTitle(String defaultTitle) {
                this.defaultTitle = defaultTitle;
            }
        }

        public static class BadgeDTO {
            /**
             * offset : rb
             * bind_prop : remarks
             * format_text : $$
             */

            @SerializedName("offset")
            private String offset;
            @SerializedName("bind_prop")
            private String bindProp;
            @SerializedName("format_text")
            private String formatText;

            public String getOffset() {
                return offset;
            }

            public void setOffset(String offset) {
                this.offset = offset;
            }

            public String getBindProp() {
                return bindProp;
            }

            public void setBindProp(String bindProp) {
                this.bindProp = bindProp;
            }

            public String getFormatText() {
                return formatText;
            }

            public void setFormatText(String formatText) {
                this.formatText = formatText;
            }
        }
    }

    public static class DatasDTO {
        /**
         * searchExtendOneLevel : false
         * level : 5
         * by : time
         * order : DESC
         * start : 0
         * num : 6
         * paging : true
         * valuesItems : [{"text":"动作片","oldname":"动作片","value":"6","sortorder":0}]
         * conditions : [{"enabled":true,"filterType":"other","defaultText":"全部","sortOrder":3,"valuesItems":[{"text":"大陆","value":"120"}],"otherItems":[{"enabled":true,"type":"hits","hot":false,"text":"最多播放"}]}]
         * sorts : [{"by":"time","order":"DESC"}]
         * one_level_id : 1
         * one_level_text : 电影
         */
        private String area;
        private String ext_type;
        private String hits_condition;
        private String hits_type;
        private String hits_value;
        private String ids;
        private String key;
        private String lang;
        private String mid;
        private String rel;
        private String state;
        private String tag;
        private String time;
        private String timeadd;
        private String type;
        private String version;
        private String year;

        @SerializedName("searchExtendOneLevel")
        private boolean searchExtendOneLevel;
        @SerializedName("level")
        private int level;
        @SerializedName("by")
        private String by;
        @SerializedName("order")
        private String order;
        @SerializedName("start")
        private int start;
        @SerializedName("num")
        private int num;
        @SerializedName("paging")
        private boolean paging;
        @SerializedName("valuesItems")
        private List<ValuesItemsDTO> valuesItems;
        @SerializedName("conditions")
        private List<ConditionsDTO> conditions;
        @SerializedName("sorts")
        private List<SortsDTO> sorts;
        @SerializedName("one_level_id")
        private String oneLevelId;
        @SerializedName("one_level_text")
        private String oneLevelText;

        public String getArea() {
            return area;
        }

        public void setArea(String area) {
            this.area = area;
        }

        public String getExt_type() {
            return ext_type;
        }

        public void setExt_type(String ext_type) {
            this.ext_type = ext_type;
        }

        public String getHits_condition() {
            return hits_condition;
        }

        public void setHits_condition(String hits_condition) {
            this.hits_condition = hits_condition;
        }

        public String getHits_type() {
            return hits_type;
        }

        public void setHits_type(String hits_type) {
            this.hits_type = hits_type;
        }

        public String getHits_value() {
            return hits_value;
        }

        public void setHits_value(String hits_value) {
            this.hits_value = hits_value;
        }

        public String getIds() {
            return ids;
        }

        public void setIds(String ids) {
            this.ids = ids;
        }

        public String getKey() {
            return key;
        }

        public void setKey(String key) {
            this.key = key;
        }

        public String getLang() {
            return lang;
        }

        public void setLang(String lang) {
            this.lang = lang;
        }

        public String getMid() {
            return mid;
        }

        public void setMid(String mid) {
            this.mid = mid;
        }

        public String getRel() {
            return rel;
        }

        public void setRel(String rel) {
            this.rel = rel;
        }

        public String getState() {
            return state;
        }

        public void setState(String state) {
            this.state = state;
        }

        public String getTag() {
            return tag;
        }

        public void setTag(String tag) {
            this.tag = tag;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public String getTimeadd() {
            return timeadd;
        }

        public void setTimeadd(String timeadd) {
            this.timeadd = timeadd;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getVersion() {
            return version;
        }

        public void setVersion(String version) {
            this.version = version;
        }

        public String getYear() {
            return year;
        }

        public void setYear(String year) {
            this.year = year;
        }

        public boolean isSearchExtendOneLevel() {
            return searchExtendOneLevel;
        }

        public void setSearchExtendOneLevel(boolean searchExtendOneLevel) {
            this.searchExtendOneLevel = searchExtendOneLevel;
        }

        public int getLevel() {
            return level;
        }

        public void setLevel(int level) {
            this.level = level;
        }

        public String getBy() {
            return by;
        }

        public void setBy(String by) {
            this.by = by;
        }

        public String getOrder() {
            return order;
        }

        public void setOrder(String order) {
            this.order = order;
        }

        public int getStart() {
            return start;
        }

        public void setStart(int start) {
            this.start = start;
        }

        public int getNum() {
            return num;
        }

        public void setNum(int num) {
            this.num = num;
        }

        public boolean isPaging() {
            return paging;
        }

        public void setPaging(boolean paging) {
            this.paging = paging;
        }

        public List<ValuesItemsDTO> getValuesItems() {
            return valuesItems;
        }

        public void setValuesItems(List<ValuesItemsDTO> valuesItems) {
            this.valuesItems = valuesItems;
        }

        public List<ConditionsDTO> getConditions() {
            return conditions;
        }

        public void setConditions(List<ConditionsDTO> conditions) {
            this.conditions = conditions;
        }

        public List<SortsDTO> getSorts() {
            return sorts;
        }

        public void setSorts(List<SortsDTO> sorts) {
            this.sorts = sorts;
        }

        public String getOneLevelId() {
            return oneLevelId;
        }

        public void setOneLevelId(String oneLevelId) {
            this.oneLevelId = oneLevelId;
        }

        public String getOneLevelText() {
            return oneLevelText;
        }

        public void setOneLevelText(String oneLevelText) {
            this.oneLevelText = oneLevelText;
        }

        public static class ValuesItemsDTO {
            /**
             * text : 动作片
             * oldname : 动作片
             * value : 6
             * sortorder : 0
             */

            @SerializedName("text")
            private String text;
            @SerializedName("oldname")
            private String oldname;
            @SerializedName("value")
            private String value;
            @SerializedName("sortorder")
            private int sortorder;

            public String getText() {
                return text;
            }

            public void setText(String text) {
                this.text = text;
            }

            public String getOldname() {
                return oldname;
            }

            public void setOldname(String oldname) {
                this.oldname = oldname;
            }

            public String getValue() {
                return value;
            }

            public void setValue(String value) {
                this.value = value;
            }

            public int getSortorder() {
                return sortorder;
            }

            public void setSortorder(int sortorder) {
                this.sortorder = sortorder;
            }
        }

        public static class ConditionsDTO {
            /**
             * enabled : true
             * filterType : other
             * defaultText : 全部
             * sortOrder : 3
             * valuesItems : [{"text":"大陆","value":"120"}]
             * otherItems : [{"enabled":true,"type":"hits","hot":false,"text":"最多播放"}]
             */

            @SerializedName("enabled")
            private boolean enabled;
            @SerializedName("filterType")
            private String filterType;
            @SerializedName("defaultText")
            private String defaultText;
            @SerializedName("sortOrder")
            private int sortOrder;
            @SerializedName("valuesItems")
            private List<ValuesItemsDTO> valuesItems;
            @SerializedName("otherItems")
            private List<OtherItemsDTO> otherItems;

            public boolean isEnabled() {
                return enabled;
            }

            public void setEnabled(boolean enabled) {
                this.enabled = enabled;
            }

            public String getFilterType() {
                return filterType;
            }

            public void setFilterType(String filterType) {
                this.filterType = filterType;
            }

            public String getDefaultText() {
                return defaultText;
            }

            public void setDefaultText(String defaultText) {
                this.defaultText = defaultText;
            }

            public int getSortOrder() {
                return sortOrder;
            }

            public void setSortOrder(int sortOrder) {
                this.sortOrder = sortOrder;
            }

            public List<ValuesItemsDTO> getValuesItems() {
                return valuesItems;
            }

            public void setValuesItems(List<ValuesItemsDTO> valuesItems) {
                this.valuesItems = valuesItems;
            }

            public List<OtherItemsDTO> getOtherItems() {
                return otherItems;
            }

            public void setOtherItems(List<OtherItemsDTO> otherItems) {
                this.otherItems = otherItems;
            }

            public static class ValuesItemsDTO {
                /**
                 * text : 大陆
                 * value : 120
                 */

                @SerializedName("text")
                private String text;
                @SerializedName("value")
                private String value;

                public String getText() {
                    return text;
                }

                public void setText(String text) {
                    this.text = text;
                }

                public String getValue() {
                    return value;
                }

                public void setValue(String value) {
                    this.value = value;
                }
            }

            public static class OtherItemsDTO {
                /**
                 * enabled : true
                 * type : hits
                 * hot : false
                 * text : 最多播放
                 */

                @SerializedName("enabled")
                private boolean enabled;
                @SerializedName("type")
                private String type;
                @SerializedName("hot")
                private boolean hot;
                @SerializedName("text")
                private String text;

                public boolean isEnabled() {
                    return enabled;
                }

                public void setEnabled(boolean enabled) {
                    this.enabled = enabled;
                }

                public String getType() {
                    return type;
                }

                public void setType(String type) {
                    this.type = type;
                }

                public boolean isHot() {
                    return hot;
                }

                public void setHot(boolean hot) {
                    this.hot = hot;
                }

                public String getText() {
                    return text;
                }

                public void setText(String text) {
                    this.text = text;
                }
            }
        }

        public static class SortsDTO {
            /**
             * by : time
             * order : DESC
             */

            @SerializedName("by")
            private String by;
            @SerializedName("order")
            private String order;

            public String getBy() {
                return by;
            }

            public void setBy(String by) {
                this.by = by;
            }

            public String getOrder() {
                return order;
            }

            public void setOrder(String order) {
                this.order = order;
            }
        }
    }

    public static class ItemsDTO {
        /**
         * openin : false
         * photoType : VIDEO
         * cmsImg : {"id":214188,"title":"赘婿","picProp":"pic_slide","picUrl":"https://ae01.alicdn.com/kf/Uc9cac45bd52248a7bb20ce6de2470960U.jpg","useTitle":true}
         */

        @SerializedName("openin")
        private boolean openin;
        @SerializedName("photoType")
        private String photoType;
        @SerializedName("cmsImg")
        private CmsImgDTO cmsImg;

        public boolean isOpenin() {
            return openin;
        }

        public void setOpenin(boolean openin) {
            this.openin = openin;
        }

        public String getPhotoType() {
            return photoType;
        }

        public void setPhotoType(String photoType) {
            this.photoType = photoType;
        }

        public CmsImgDTO getCmsImg() {
            return cmsImg;
        }

        public void setCmsImg(CmsImgDTO cmsImg) {
            this.cmsImg = cmsImg;
        }

        public static class CmsImgDTO {
            /**
             * id : 214188
             * title : 赘婿
             * picProp : pic_slide
             * picUrl : https://ae01.alicdn.com/kf/Uc9cac45bd52248a7bb20ce6de2470960U.jpg
             * useTitle : true
             */

            @SerializedName("id")
            private int id;
            @SerializedName("title")
            private String title;
            @SerializedName("picProp")
            private String picProp;
            @SerializedName("picUrl")
            private String picUrl;
            @SerializedName("useTitle")
            private boolean useTitle;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getTitle() {
                return title;
            }

            public void setTitle(String title) {
                this.title = title;
            }

            public String getPicProp() {
                return picProp;
            }

            public void setPicProp(String picProp) {
                this.picProp = picProp;
            }

            public String getPicUrl() {
                return picUrl;
            }

            public void setPicUrl(String picUrl) {
                this.picUrl = picUrl;
            }

            public boolean isUseTitle() {
                return useTitle;
            }

            public void setUseTitle(boolean useTitle) {
                this.useTitle = useTitle;
            }
        }
    }
}
